package com.ocl.www.mapper;

import java.util.List;

import com.ocl.www.domain.Comment;
import com.ocl.www.domain.User;
import org.apache.ibatis.annotations.Mapper;

import com.ocl.www.domain.Article;

@Mapper
public interface ArticleMapper {

	public int insertArticle(Article art) throws Exception;

	public List<Article> selectArticles(Article art) throws Exception;

	public List<Article> selectAllArticle() throws Exception;

    List<Article> queryArticles() throws Exception;

	Article selectArticle(Article art) throws Exception;

	int addOneLikeCount(Article art) throws Exception;
	int ReduceOneLikeCount(Article art) throws Exception;

    List<Article> selectArticlesOfUser(User user)throws Exception;

    List<Article> selectArticleList(List<Integer> articleids)throws Exception;

    int addOneCommCount(Comment comm)throws Exception;

    List<Article> selectAllArticleOrderByLikeCount()throws Exception;
}
